﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MainFrame.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<GPMS.Model.SelectionStatus>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    SelectionStatus
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

<h2>选题情况</h2>
<table id="selectionstatus">
    <tr>
        <th>
            系别
        </th>
        <th>
            总人数
        </th>
        <th>
            已确定选题人数
        </th>
        <th>
            未确定选题人数
        </th>
        <th>
            可选题目数
        </th>
    </tr>

<% foreach (var item in Model) { %>
    <tr>
        <td>
            <%: item.specialty.SpecialtyName %>
        </td>
        <td>
            <%: item.Total %>
        </td>
        <td>
            <%: item.Confirm %>
        </td>
        <td>
            <%: item.Total -item.Confirm %>
        </td>
        <td>
            <%: item.Selectable %>
        </td>
    </tr>  
<% } %>
 <script type="text/javascript">
     $(function () {
         tableToGrid($("#selectionstatus"), { width: 800, height: 480 });
         InitDialogLink($("a.dialog"), $("#dialogPanel"));
     });
     var reflashTag = {};
    </script>
</table>

</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="Header" runat="server">
    <link href="<%=Url.Content("~/Content/css/ui.jqgrid.css") %>" rel="Stylesheet" type="text/css" />
    <script type="text/javascript" src="<%=Url.Content("~/Scripts/i18n/grid.locale-cn.js") %>"></script>
    <script type="text/javascript" src="<%=Url.Content("~/Scripts/jquery.jqGrid.min.js") %>"></script>
    <style type="text/css">
        body
        {
            background: white;
        }
    </style>
</asp:Content>

